package com.m3839.sdk.common.core;

/**
 * @author ChenBaoyang
 * @description: HykbErrorConstant
 * @date 2021/11/13 10:33
 */
public class ErrorConstant {


    /** 服务端请求异常 这个是SDK本地增加的code和message*/
    public static final int HYKB_CODE_SERVER_EXCEPTION = -1;
    public static final String ERR_MSG_SERVER_EXCEPTION = "服务端异常";

    /** 网络异常 这个是SDK本地增加的code和message */
    public static final int HYKB_CODE_NETWORK_ERROR = 1009;
    public static final String ERR_MSG_NETWORK_ERROR = "网络异常，请检查网络";

    /** activity上下文对象不能为空 这个是SDK本地增加的code和message*/
    public static final int HYKB_CODE_ACTIVITY_IS_NULL = -1000;
    public static final String ERR_MSG_SDK_ACTIVITY_IS_NULL = "activity不能为空";

    /** SDK未进行初始化成功 */
    public static final int HYKB_CODE_SDK_NOT_INIT_OK = -2;
    public static final String ERR_MSG_SDK_NOT_INIT_OK = "SDK未初始化";

    /** SDK未进行登录 */
    public static final int HYKB_CODE_SDK_NOT_LOGIN = -3;
    public static final String ERR_MSG_SDK_NOT_LOGIN = "SDK未进行登录";

    /** SDK 支付参数商品名称空了 */
    public static final int HYKB_CODE_PAY_GOOD_EMPTY = -4;
    public static final String ERR_MSG_PAY_GOOD_EMPTY = "商品名称不能为空";


    /** SDK 支付参数商品名称超过16个字符 */
    public static final int HYKB_CODE_PAY_GOOD_LENGTH_OVER = -5;
    public static final String ERR_MSG_PAY_GOOD_LENGTH_OVER = "商品名称不能超过16个字符";



    /** SDK 支付参数商品金额必须要大于0 */
    public static final int HYKB_CODE_PAY_MONEY_NEED_OVER_ZERO = -6;
    public static final String ERR_MSG_PAY_MONEY_NEED_OVER_ZERO = "金额必须大于0";

    /** SDK 支付参数商品金额最大不超过五万 */
    public static final int HYKB_CODE_PAY_MONEY_NEED_LESS_5W = -7;
    public static final String ERR_MSG_PAY_MONEY_NEED_LESS_5W = "最大金额不允许超过5万";

    /** SDK 支付参数商品游戏订单号不能为空 */
    public static final int HYKB_CODE_PAY_CP_ORDER_EMPTY = -8;
    public static final String ERR_MSG_PAY_CP_ORDER_EMPTY = "cpOrderId不能为空";

    /** sdk 支付参数的订单好长度过长 */
    public static final int HYKB_CODE_PAY_CP_ORDER_LENGTH_OVER = -9;
    public static final String ERR_MSG_PAY_CP_ORDER_LENGTH_OVER = "cpOrderId不能超过128位";

    /** sdk登录失败 */
    public static final int HYKB_CODE_LOGIN_FAIL = 2002;
    public static final String ERR_MSG_SDK_LOGIN_FAIL = "登录失败";

    public static final int HYKB_CODE_LOGIN_CANCEL = 2003;
    public static final String ERR_MSG_SDK_LOGIN_CANCEL = "取消登录";

    public static final int HYKB_CODE_LOGIN_DATA_EXCEPTION = 2004;
    public static final String ERR_MSG_SDK_LOGIN_DATA_EXCEPTION = "登录异常";

    /** 统一对外的游戏退出回调 */
    public static final int HYKB_CODE_EXIT_GAME = 2005;
    public static final String ERR_MSG_SDK_EXIT_GAME = "退出游戏";

    /** 统一对外的游戏退出回调 */
    public static final int HYKB_CODE_DIALOG_ANTI_CLOSE = 2008;
    public static final String ERR_MSG_SDK_DIALOG_ANTI_CLOSE= "防沉迷弹窗的关闭";

    /** 统一对外的游戏退出回调 */
    public static final String HYKB_STRING_EXIT_GAME_OR_LOGOUT = "退出游戏或者注销账号";

    public static final int HYKB_CODE_LOGIN_AGAIN_CLOSE = 2007;
    public static final String ERR_MSG_LOGIN_AGAIN_CLOSE = "关闭抢登弹窗";


    /** 关闭支付弹窗面板的回调code */
    public static final int HYKB_CODE_PAY_DIALOG_CLOSE = 3001;
    public static final String ERR_MSG_PAY_DIALOG_CLOSE = "支付弹窗关闭";

    /** 关闭支付限额弹窗面板的回调code */
    public static final int HYKB_CODE_PAY_LIMIT_DIALOG_CLOSE = 3002;
    public static final String ERR_MSG_PAY_LIMIT_DIALOG_CLOSE = "支付限额弹窗关闭";

    /** 关闭支付结果弹窗面板的回调code */
    public static final int HYKB_CODE_PAY_RESULT_DIALOG_CLOSE = 3003;
    public static final String ERR_MSG_PAY_RESULT_DIALOG_CLOSE = "支付结果弹窗关闭";

    /** 关闭支付订单重新查询弹窗面板的回调code */
    public static final int HYKB_CODE_PAY_RETRY_DIALOG_CLOSE = 3004;
    public static final String ERR_MSG_PAY_RETRY_DIALOG_CLOSE = "支付订单重新查询弹窗关闭";

}
